<admintpl file="header"/>
<link rel="stylesheet" href="__PUBLIC__/css/jquery.datetimepicker.css">
<link rel="stylesheet" href="__PUBLIC__/css/main.css">
<link rel="stylesheet" href="__PUBLIC__/css/act_info.css">
<script src="__PUBLIC__/js/uploadify/jquery2.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/jquery.form.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/uploadify/uploadify.css">

<script src="__PUBLIC__/js/laydate.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/selectcity/cityselect.js"></script>
<link rel="stylesheet" href="__PUBLIC__/js/selectcity/cityselect.css">

<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/clockpicker/bootstrap-clockpicker.min.css">
<script type="text/javascript" src="__PUBLIC__/js/clockpicker/bootstrap-clockpicker.min.js"></script>

<style type="text/css">
    .hidden {
        display: none;
    }

    label {
        cursor: default
    }
</style>
</head>
<body>

<div class="manage">
    <span><a href="{:U('Special/main')}">活动管理</a></span><span><a href="#">运营管理</a></span>
</div>

<div class="act_main"><a href="{:U('Special/main')}">活动管理</a>
        <span class="act-nav">
          <a href="{:U('Grab/index')}">秒杀活动</a>
        </span>
</div>
<div class="wrap">
    <div class="act_title">
        <div class="act_left">
            <span class="act_all" data-shoptype=""><a href="#" class="rehref" style="color: #000">编辑活动信息 -
                {$list.data.ActivityInfo.attributeInfo.PageTitle}</a></span>
        </div>
    </div>
    <div class="form-horizontal Jactadd">
        <div class="control-group">
            <label class="control-label act-info">活动信息……</label>

            <div class="controls act_right text-center">
                <ul>

                    <li>
                        <a href="{:U('Grab/view',array('ActivityID'=> $list['data']['ActivityInfo']['attributeInfo']['ActivityID']))}">>
                            <span>返回&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                        </a>
                    </li>
                    <li><a href="{:U('Grab/index')}">> <span>返回秒杀活动</span></a></li>
                </ul>
            </div>
        </div>


        <div class="control-group">
            <label class="control-label ">活动标题</label>

            <div class="controls">
                <input type="text" name="Name" placeholder="请添加活动标题"
                       value="{$list.data.ActivityInfo.attributeInfo.PageTitle}">

                <input type="hidden" name="ActivityID" class="ActivityID"
                       value="{$list.data.ActivityInfo.attributeInfo.ActivityID}">
                <span class="form-required">*</span>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label ">活动说明</label>

            <div class="controls">
                <textarea name="ShopDesc" class="form-control Businessdesc" rows="10" cols="30">{$list.data.ActivityInfo.attributeInfo.Description.0}</textarea>
                <span class="form-required">*</span>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label ">奖品数量限制</label>

            <div class="controls">
                <input type="text" name="prizeLimit" value="{$list.data.ActivityInfo.attributeInfo.PrizeLimit}">
                <span class="form-required">*</span>
            </div>
        </div>

        <div class="garbtimes">
            <div class="activity-info">
                <div class="control-group">
                    <label class="control-label act-info">
                        活动场次……（<span
                            class="playnuminfo"><?php echo count($list['data']['ActivityInfo']['timeRange']);?></span>个场次）</label>
                    <!--<a href="javascript:void(0)" class="btn btn-info JaddvisitList">+添加场次</a>-->
                </div>
            </div>

            <div class="JactivityTotal">
                <div class="JactivityPlayInfo">
                    <div class="Jmanyactivity">
                        <div class="actdetail"><span class="survey">活动场次概况</span></div>
                        <div class="modal-body">
                            <div class="control-group form-horizontal addPlay">
                                <div class="control-group">
                                    <label class="control-label">活动城市：</label>

                                    <div class="control-group">
                                        <foreach name="list['data']['ActivityInfo']['cityInfo']['cityName']" key="key"
                                                 item="vo">
                                            <span class="picdemo"> {$vo}</span>
                                        </foreach>

                                    </div>
                                </div>


                                <div class="control-group">
                                    <label class="control-label">活动时段：</label>
                                    <foreach name="list['data']['ActivityInfo']['dateList']" key="key" item="vo">

                                        <foreach name="vo" key="k" item="v">
                                            <div class="controls">
                                                {$v.startDate} - {$v.endDate}
                                            </div>
                                        </foreach>
                                    </foreach>
                                </div>

                            </div>
                        </div>

                        <div class="activityNumber"></div>
                    </div>
                </div>
            </div>

        </div>

        <div class="form-actions">
            <button type="submit" class="btn btn-primary Jsubmit editSubmit">提交</button>
        </div>
    </div>
</div>
<script type="text/javascript">

    var m = 1;
    $(function () {
        $('.CitySelectInfo .picdemo').each(function () {
            var cityKey = $(this).find('.cityinput').data('key');
            m = cityKey;
            new Vcity.CitySelector({input: 'citySelect' + cityKey});
        })

        $('.TimeSoltTimesInfo').each(function () {

            var starttimekey = $(this).find('.startplaytimes').data('starttimekey');
            var endtimekey = $(this).find('.endplaytimes').data('endtimekey');

            $('.starttimestime' + starttimekey).clockpicker();
            $('.endtimestime' + endtimekey).clockpicker();
        })


    })


    var addacturl = "{:U('Grab/addGarbHandle')}";
    var editGraburl = "{:U('Grab/editGarbHandle')}";
    var editacturl = "{:U('Grab/view')}";


    $(function () {
        $('.rehref').click(function () {
            location.reload();
        })
    })

</script>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/js/artDialog/artDialog.js"></script>
<script src="__PUBLIC__/js/grab.js"></script>
</body>
</html>